package org.sciom.evaluation

import org.sciom.parser.ScIomParser

class EvaluationWaiter(parser: ScIomParser) {
  def _with(evaluator: Evaluator) : AnyRef = {
    var t = parser.nextTree
    var ret : AnyRef = null
    while(t != null) {
      ret = evaluator.evaluateWith(t)
      t = parser.nextTree
    }
    ret
  }
}
